<template>
  <div>
    <el-container>
      <!--   侧边栏   -->
      <el-aside width="auto">
        <Aside></Aside>
      </el-aside>

      <el-container>
        <!--   头部区域   -->
        <el-header>
          <Header></Header>
        </el-header>
        <!--  主内容区域  -->
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from "@/components/Header";
import Aside from "@/components/Aside";

export default {
  name: "Main",
  components: {Header, Aside},
  data() {
    return {
      isCollapse: true
    }
  }
}
</script>

<style scoped lang="less">
.el-header {
  padding: 0;
}

.el-main {
  height: calc(100vh - 60px); // 设置主体 main 高度
}
</style>
